package org.jeecg.common.util.p000a.p001a;

import com.alibaba.fastjson.JSONObject;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;
import org.jeecg.common.util.p000a.CommonProperty;
import org.jeecg.modules.online.cgform.consts.ExtendJsonKey;
import org.jeecg.modules.online.cgform.utils.CgformUtil;

/* renamed from: org.jeecg.common.util.a.a.i */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/common/util/a/a/i.class */
@Getter
@Setter
public class TreeSelectProperty extends CommonProperty {

    /* renamed from: m */
    private static final long f31m = 3786503639885610767L;

    /* renamed from: n */
    private String dict;

    /* renamed from: o */
    private String pidField;

    /* renamed from: p */
    private String pidValue;

    /* renamed from: q */
    private String hasChildField;

    /* renamed from: r */
    private String textField;

    /* renamed from: s */
    private Integer pidComponent;

    public TreeSelectProperty(String str, String str2, String str3, String str4, String str5) {
        this.pidComponent = 0;
        this.type = "string";
        this.view = CgformUtil.f246R;
        this.key = str;
        this.title = str2;
        this.dict = str3;
        this.pidField = str4;
        this.pidValue = str5;
    }

    public TreeSelectProperty(String str, String str2, String str3) {
        this.pidComponent = 0;
        this.type = "string";
        this.view = CgformUtil.f247S;
        this.key = str;
        this.title = str2;
        this.pidValue = str3;
    }

    public TreeSelectProperty(String str, String str2, String str3, String str4) {
        this(str, str2, str3);
        this.textField = str4;
    }

    @Override // org.jeecg.common.util.p000a.CommonProperty
    public Map<String, Object> getPropertyJson() {
        HashMap hashMap = new HashMap(5);
        hashMap.put("key", getKey());
        JSONObject commonJson = getCommonJson();
        if (this.dict != null) {
            commonJson.put("dict", this.dict);
        }
        if (this.pidField != null) {
            commonJson.put("pidField", this.pidField);
        }
        if (this.pidValue != null) {
            commonJson.put("pidValue", this.pidValue);
        }
        if (this.textField != null) {
            commonJson.put(ExtendJsonKey.f137j, this.textField);
        }
        if (this.hasChildField != null) {
            commonJson.put("hasChildField", this.hasChildField);
        }
        if (this.pidComponent != null) {
            commonJson.put("pidComponent", this.pidComponent);
        }
        if (super.getPattern() != null) {
            commonJson.put("pattern", super.getPattern());
        }
        if (super.getErrorInfo() != null) {
            commonJson.put("errorInfo", super.getErrorInfo());
        }
        hashMap.put("prop", commonJson);
        return hashMap;
    }
}
